class TransactionModel {
  final String merchant;
  final String amount;
  final String category;

  final String date;

  final String name;

  final String card;

  final String txnId;

  final String status;
  final String budget;

  final String receipt;

  TransactionModel(this.merchant, this.amount, this.category, this.date,
      this.name, this.card, this.txnId, this.status, this.budget, this.receipt);
  TransactionModel.fromJson(Map<String, dynamic> json)
      : merchant = json['merchant'] ?? '',
        amount = json['amount'] ?? '',
        date = json['date'] ?? '',
        txnId = (json['txnId'] ?? '').toString(),
        name = json['name'] ?? '',
        budget = json['budget'] ?? '',
        card = (json['card'] ?? '').toString(),
        status = json['status'] ?? '',
        receipt = json['receipt'] ,
        category = json['category'] ?? '';
}
